FragmentTransitionImpl

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun addTarget(@NonNull transitionObj: Any, @NonNull view: View)
Adds a View target to a transition.
Link copied to clipboard
abstract fun addTargets(@NonNull transitionObj: Any, @NonNull views: ArrayList<View>)
This method adds views as targets to the transition, but only if the transition doesn't already have a target.
Link copied to clipboard
open fun animateToEnd(@NonNull transitionController: Any)
Animate the transition to end.
Link copied to clipboard
open fun animateToStart(@NonNull transitionController: Any, @NonNull completeRunnable: Runnable)
Animate the transition to start.
Link copied to clipboard
abstract fun beginDelayedTransition(@NonNull sceneRoot: ViewGroup, @Nullable transition: Any)
Calls TransitionManager#beginDelayedTransition(ViewGroup, Transition).
Link copied to clipboard
abstract fun canHandle(@NonNull transition: Any): Boolean
Returns true if this implementation can handle the specified transition.
Link copied to clipboard
abstract fun cloneTransition(@Nullable transition: Any): Any
Returns a clone of a transition or null if it is null
Link copied to clipboard
open fun controlDelayedTransition(@NonNull sceneRoot: ViewGroup, @NonNull transition: Any): Any
Allows for controlling a seekable transition
Link copied to clipboard
open fun isSeekingSupported(@NonNull transition: Any): Boolean
Returns true if the Transition is seekable.
Link copied to clipboard
abstract fun mergeTransitionsInSequence(@Nullable exitTransitionObj: Any, @Nullable enterTransitionObj: Any, @Nullable sharedElementTransitionObj: Any): Any
Combines enter, exit, and shared element transition so that they play in the proper sequence.
Link copied to clipboard
abstract fun mergeTransitionsTogether(@Nullable transition1: Any, @Nullable transition2: Any, @Nullable transition3: Any): Any
Creates a TransitionSet that plays all passed transitions together.
Link copied to clipboard
abstract fun removeTarget(@NonNull transitionObj: Any, @NonNull view: View)
Remove a View target to a transition.
Link copied to clipboard
abstract fun replaceTargets(@NonNull transitionObj: Any, oldTargets: ArrayList<View>, newTargets: ArrayList<View>)
This method removes the views from transitions that target ONLY those views and replaces them with the new targets list.
Link copied to clipboard
abstract fun scheduleHideFragmentView(@NonNull exitTransitionObj: Any, @NonNull fragmentView: View, @NonNull exitingViews: ArrayList<View>)
After the transition completes, the fragment's view is set to GONE and the exiting views are set to VISIBLE.
Link copied to clipboard
abstract fun scheduleRemoveTargets(@NonNull overallTransitionObj: Any, @Nullable enterTransition: Any, @Nullable enteringViews: ArrayList<View>, @Nullable exitTransition: Any, @Nullable exitingViews: ArrayList<View>, @Nullable sharedElementTransition: Any, @Nullable sharedElementsIn: ArrayList<View>)
After the transition has started, remove all targets that we added to the transitions so that the transitions are left in a clean state.
Link copied to clipboard
open fun setCurrentPlayTime(@NonNull transitionController: Any, progress: Float)
Uses given progress to set the current play time of the transition.
Link copied to clipboard
abstract fun setEpicenter(@NonNull transitionObj: Any, @NonNull epicenter: Rect)
Sets the epicenter of a transition to a rect object.
abstract fun setEpicenter(@NonNull transitionObj: Any, @Nullable view: View)
Sets a transition epicenter to the rectangle of a given View.
Link copied to clipboard
open fun setListenerForTransitionEnd(@NonNull outFragment: Fragment, @NonNull transition: Any, @NonNull signal: CancellationSignal, @NonNull transitionCompleteRunnable: Runnable)
open fun setListenerForTransitionEnd(@NonNull outFragment: Fragment, @NonNull transition: Any, @NonNull signal: CancellationSignal, @Nullable cancelRunnable: Runnable, @NonNull transitionCompleteRunnable: Runnable)
Set a listener for Transition end events.
Link copied to clipboard
abstract fun setSharedElementTargets(@NonNull transitionObj: Any, @NonNull nonExistentView: View, @NonNull sharedViews: ArrayList<View>)
Finds all children of the shared elements and sets the wrapping TransitionSet targets to point to those.
Link copied to clipboard
abstract fun swapSharedElementTargets(@Nullable sharedElementTransitionObj: Any, @Nullable sharedElementsOut: ArrayList<View>, @Nullable sharedElementsIn: ArrayList<View>)
Swap the targets for the shared element transition from those Views in sharedElementsOut to those in sharedElementsIn
Link copied to clipboard
abstract fun wrapTransitionInSet(@Nullable transition: Any): Any
Wraps a transition in a TransitionSet and returns the set.